#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui>
#include <QtSql>
#include "global.h"
#include "miniobject.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private Q_SLOTS:
    void saveSettings();
    void loadSettings();
    void loadMinistranten();

    void on_tabWidget_currentChanged(int index);

    void on_ministranten_listWidget_itemSelectionChanged();
    void on_actionNeuer_Ministrant_triggered();

    void on_actionMinistrant_loeschen_triggered();

private:
    Ui::MainWindow *ui;
    QSqlDatabase db;
};

#endif // MAINWINDOW_H
